<%@ page import="java.sql.*" %>
<%@ page import="Dao.BookDao" %><%--
  Created by IntelliJ IDEA.
  User: Muerzhi
  Date: 2023/12/26
  Time: 8:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body background="picture/page.webp"
style="background-repeat:no-repeat;
background-attachment:fixed;
background-size:100% 100%; ">
<%
    String bookId=request.getParameter("bookId");
    String bookName=request.getParameter("bookName");
%>

<%


    BookDao bookDao = new BookDao();
    ResultSet rs = null;
    try {
        rs = bookDao.getContent(bookId);
    } catch (SQLException e) {
        e.printStackTrace();
    }
//    out.println("<h1>"+bookName+"</h1>");
    if(rs.next()){
        String content=rs.getString("bookContent");
        out.println("<p>"+content+"</p>");
    }
%>

</body>
</html>
